package com.test.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.test.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
@DS("ds1")
public interface DeptMapper {
    @DS("ds2")
    @Select("select ID,NAME from DEPT where ID=#{id}")
    Dept getDeptById(Integer id);

    @Select("select ID,NAME from DEPT where ID=#{id}")
    Dept getDeptById2(Integer id);
}
